package com.lancoo.ccas53.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 教学班对应的学生
 * </p>
 *
 * @author quin.song
 * @since 2024-05-20
 */
@Data
@Accessors(chain = true)
@TableName("teaching_class_student")
@ApiModel(value = "TeachingClassStudent对象", description = "教学班对应的学生")
public class TeachingClassStudent implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @ApiModelProperty("教学班id")
    private Long teachingClassId;
    @ApiModelProperty("课程id")
    private Long courseId;
    @ApiModelProperty("学生id")
    private Long studentId;
    @ApiModelProperty("1选   2退选   3管理员移除")
    private Integer flag;
    @ApiModelProperty("轮次id")
    private Integer roundId;
    private LocalDateTime createdTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime modifiedTime;
}
